package com.stronger.pettern.decorator.decorator2;
/**
 * 具体装饰角色
 */
public class DogDecorator2 extends AbDecoratorAnimal{
    public DogDecorator2(Animal animal) {
        super(animal);
    }

    public void sleep(){
        super.sleep();
        run();
    }

    private void run(){
        System.out.println("dog is running");
    }
}
